package com.dhcc.bpm.modules.sandbox.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dhcc.bpm.modules.sandbox.entity.CaseApiReturn;
import com.dhcc.bpm.modules.sandbox.vo.CaseApiReturnVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName CaseApiReturnMapper
 * @Description 沙箱实例API返回码表 Mapper 接口
 * @Author sjm
 * @Date 2020/2/21 0021 15:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 **/
public interface CaseApiReturnMapper extends BaseMapper<CaseApiReturn> {

	/**
	 * 自定义分页
	 * @Author sjm
	 * @Date 17:44 2020/2/21 0021
	 * @param page
	 * @param caseApiReturn
	 * @return java.util.List<com.dhcc.bpm.modules.sandbox.vo.CaseApiReturnVO>
	 **/
	List<CaseApiReturnVO> selectCaseApiReturnPage(IPage page, CaseApiReturnVO caseApiReturn);

	/**
	 * 自定义分页
	 * @Author sjm 
	 * @Date 17:44 2020/2/21 0021
	 * @param apiId
	 * @param caseId
	 * @return com.dhcc.bpm.modules.sandbox.vo.CaseApiReturnVO
	 **/
	CaseApiReturnVO selectCaseApi(Long apiId, Long caseId);

	/**
	 * 批量删除
	 * @Author sjm
	 * @Date 17:45 2020/2/21 0021
	 * @param apiId
	 * @param caseId
	 * @param toLongArray
	 * @return java.lang.Boolean
	 **/
	Boolean deleteCases(Long apiId, Long caseId, @Param("ids") Long[] toLongArray);
}
